import request from '../../utils/request';
// 新增
export function addFarmland (params){
    return request({
        url:'/sys/iaShareFarmland/add.do',
        method: 'post',
        data: params,
        headContype:true
    });
};
// 删除
export function delFarmland (params){
    return request({
        url:'/sys/iaShareFarmland/detele.do',
        method: 'DELETE',
        params: params
    });
};

// 查看编辑详情/审核详情
export function lookFarmlandDetail (params){
    return request({
        url:'/sys/iaShareFarmland/detail.do',
        method: 'get',
        params: params
    });
};

// 获取列表数据
export function getFarmlandList (params){
    return request({
        url:'/sys/iaShareFarmland/findIaShareFarmlandListByPage.do',
        method: 'get',
        params: params
    });
};

//编辑提交
export function editFarmland (params){
    return request({
        url:'/sys/iaShareFarmland/update.do',
        method: 'post',
        data: params,
        headContype:true
    });
};

// 通过审核信息 / 拒绝审核信息
export function approveOrRejectAudit (params){
    return request({
        url:"/sys/iaShareFarmland/check.do",
        method: 'PUT',
        params: params
    });
};


